import type { BaseResponse } from "@/api/index.d";
import service from "@/utils/service";

export const useHotelCreateApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/hotel/organization/create`,
    method: "POST",
    data,
  });
};
export const useHotelDeleteApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/hotel/organization/delete`,
    method: "POST",
    data,
  });
};
export const useHotelListApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/hotel/organization/list`,
    method: "POST",
    data,
  });
};
export const useHotelPageApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/hotel/organization/page`,
    method: "POST",
    data,
  });
};
export const useHotelUpdateApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/hotel/organization/update`,
    method: "POST",
    data,
  });
};
